package com.kuang.oop.demo04;


//类 private:私有
public class Student {
    //属性私有
    //名字
    protected String name;
    //学号
    private int id;
    //性别
    private char sex;




    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public char getSex() {
        return this.sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

}
